﻿
    using Entitas;
    using UnityEngine;

    public class AccelerateComponent : IComponent
    {
        public Vector3 value;
        public float max;
        
        public void Truncate()
        {
            if (value.magnitude > max)
            {
                value = value.normalized * max;
            }
        }
    }
